Skip to content

Conversation

@hedgepigdaniel
Copy link

Before this the aggregate command ignored the codec options. this resulted in in aggregate command returning documents with naive datetime objects despite the tz_aware attribute in the collections codec options being set to True.

@behackett
Copy link
Member

Thanks for the patch. I was confused until I realized this is for PyMongo 2.9.x.

@behackett behackett self-assigned this Dec 4, 2015
@behackett
Copy link
Member

I opened https://jira.mongodb.org/browse/PYTHON-1027 to track this. We'll merge your PR for PyMongo 2.9.2.

As a workaround you can pass tz_aware=True when creating an instance of MongoClient.

@behackett
Copy link
Member

Merged to v2.9. Thanks again for the patch!

@behackett behackett closed this Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants